lcBlockAddDimAng LiteCAD API

Adds a new angular dimension object into a block.

 HANDLE lcBlockAddDimAng (
   HANDLE hBlock,
   double Xc,
   double Yc,
   double X1,
   double Y1,
   double X2,
   double Y2,
   double Xa,
   double Ya,
   double TextPos,
   LPCWSTR szText
 );

Parameters
hBlock
  Handle to a block.
Xc Yc
  Center point of dimension arc.
X1 Y1
  Definition point of the 1st extention line.
X2 Y2
  Definition point of the 2nd extention line.
Xa Ya
  Point on the dimension arc. It determines the quadrant, angle and radius of the dimension arc.
TextPos
  Text position, relative to the dimension arc. The range 0-1 means position along the dimension arc, from start arrow to end arrow. In order to place text on the arc's center, specify 0.5 . Value <0 and >1 means the text will be placed outside of the dimension arc, along the tangent line, before start arrow or after end arrow.
szText
  User-supplied dimension text.
If no text is to appear, supply "." .
If only the default text is to appear, supply an empty string "".
The default text is represented as "<>" within the supplied text.

Return Value

  Handle to created angular dimension object or NULL if the function fails.

See Also

  Dimension style,   Code sample